package com.yuexunit.account.action.v2.model;

import com.yuexunit.web.annotation.Parameter;


/**
 * @author wangjinshui
 */
public class Role {
	@Parameter(description="角色ID")
	private Long roleId;
	
	@Parameter(description="角色名称")
	private String roleName;
	
	@Parameter(description="1-帐号拥有该角色；0-帐号没有该角色")
	private Integer owned;

	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public Integer getOwned() {
		return owned;
	}

	public void setOwned(Integer owned) {
		this.owned = owned;
	}
	
	@Override
	public String toString() {
		StringBuffer result = new StringBuffer();
		
		result.append(getClass().getName())
			.append(": roleId=").append(roleId)
			.append(", roleName='").append(roleName).append("'")
			.append(", owned=").append(owned)
			;
		
		return result.toString();
	}
}
